package com.longxiao.vo;

import com.longxiao.validator.anno.ValiCnMobile;
import com.longxiao.validator.anno.ValiNumber;

/**
 * Created by yusong on 2017/5/25.
 * 发送短信请求
 */
public class SendSmsPo {
    //用户类型 用户类型（1：学生，发中文短信，2：老师，发英文短信）
    @ValiNumber(ref = {1, 2}, err = "请输入正确的用户类型")
    private Integer userType;
    //手机号
    @ValiCnMobile(err = "请输入正确的手机号码")
    private String mobile;

    @Override
    public String toString() {
        return "SendSmsPo{" +
                "userType=" + userType +
                ", mobile='" + mobile + '\'' +
                '}';
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
